package com.flow.odr;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@Slf4j
@ServletComponentScan(basePackages = "com.flow.odr.config.servlet")
public class OdrApplication  extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(OdrApplication.class);
    }
    public static void main(String[] args) {
        log.info(" start project ");
        SpringApplication.run(OdrApplication.class, args);
        log.info(" start success ");
    }

}
